import App from './App'
// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false

// import GoEasy from '@/uni_modules/GoEasy-CS/js_sdk/goeasy-2.12.4.esm.min.js' //用户
import GoEasy from '@/utils/service-lib/goeasy-2.12.4.esm.min'; //客服
const goEasy = GoEasy.getInstance({
	host: "hangzhou.goeasy.io", //若是新加坡区域：singapore.goeasy.io
	appkey: "BC-de8c0d1bfe224caeae6ecca5c55f2067",
	modules: ['im'] //根据需要，传入‘pubsub’或'im’，或数组方式同时传入
});
Vue.prototype.GoEasy = GoEasy;
Vue.prototype.goEasy = goEasy;

App.mpType = 'app'
const app = new Vue({
	...App
})
// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/utils/http.interceptor.js';
Vue.use(httpInterceptor, app);

// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/utils/http.api.js';
Vue.use(httpApi, app);

app.$mount()
// #endif